package com.xz.client;

import com.xz.MemberInfo;
import com.xz.VideoInfo;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-user")
@Component
public interface VideoInfoClient {
    @GetMapping("/video/vod/getVideo/{id}")
    public VideoInfo getVideo(@PathVariable String id);

    //得到用户信息
    @GetMapping("/video/member/getMember/{id}")
    public MemberInfo getMember(@PathVariable String id);
}
